package cn.jaye.fabric.common.constant;

/**
 * Created by Jaye on 2017/10/18.
 */
public enum ExceptionEnum {
    SYSTEM_EXCEPTION(500, "系统异常"),
    INVALID_PARAMETER(999, "无效参数"),
    USER_NOLOGIN(1001, "用户未登录"),
    LOGIN_USERNAME_PASSWORD_ERROR(1002, "用户名或密码错误"),
    ACCESSPOINT_CREATE_FAILED(1079, "新增接入点失败"),
    ACCESSPOINT_LIST_FAILED(1080, "获取接入点列表失败"),
    GET_SIGNSECRETKEY_FAIL(1081, "获取签名密钥失败"),
    GET_PARASECRETKEY_FAIL(1082, "获取参数密钥失败"),
    APIPACKAGE_LIST_FAILED(1083, "获取服务包列表失败"),
    APIPACKAGE_DETAIL_FAILED(1084, "获取服务包详情失败"),
    API_IMPORT_FAILED(1085, "API导入失败"),
    APIPACKAGE_SETTING_FAILED(1086, "服务包设置失败"),
    TENANT_APIPACKAGE_BIND_FAILED(1087, "服务包绑定失败");

    private Integer code;
    private String msg;

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
